<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户更新</title>
<s:include value="/app_common/common.jsp"></s:include>
<s:include value="/app_common/uploadify.jsp"></s:include>
<%--是否是新增 --%>
</head>
<body>
	<div class="box2" panelWidth="900" panelTitle="研究报告查看">
			<s:hidden name="data.id" id="id"></s:hidden>
			<table class="tableStyle" style="line-height: 30px" formMode="transparent">
				<tr>
					<td>编号:</td>
					<td style="color: red;">
						<s:property value="data.code==null||data.code==''?'自动生成':data.code"/>
					</td>
					<td>所属部门：</td>
					<td>
						<s:if test="!(data.code==null||data.code=='')"><s:property value="data.submit_dpname"/></s:if>
						<s:else><s:property value="%{#session.userltdname}"/></s:else>
					</td>
					<td>数据科目：</td>
					<td>
						<select name="data.data_ctype" selectedValue="<s:property value='data.data_ctype'/>" prompt="请选择" data='<s:property value="map.sel_15"/>' class="validate[required]"></select>
					</td>
				</tr>
				<tr>
					<td>数据填报人:</td>
					<td>
						<s:property value="%{data.code==null||data.code==''?#session.u_name:data.submit_uname}"/>
					</td>
					<td>金额:</td>
					<td><s:property value='data.moneys'/></td>
					<s:if test="data.type==1">
					<td>费用报销人:</td>
					<td><s:property value="data.bxr_uname" /></td>
					</s:if>
					<s:else>
						<td></td>
						<td></td>
					</s:else>
				</tr>
				<tr>
					<td>费用明细:</td>
					<td colspan="5">
						<s:property value="data.remark"/>
					</td>
				</tr>
				<tr>
					<td style="padding: 0 8px;">附件上传：</td>
					<td align="left" style="padding: 2px 6px;" colspan="5">
						<div style="color: red;">小提示：附件允许最大上传文件数为5个</div>
						<div id="full"></div>
						<div id="allShow"></div>
						<div id="show"></div>
						<input type="file" keepDefaultStyle="true" name="uploadify" id="strutsUploadFile" />
						<br />
					</td>
				</tr>
				<tr>
					<td>提交时间:<s:property value=""/></td>
					<td>
						<s:property value="%{data.code==null||data.code==''?'自动生成':data.submit_date}"/>
					</td>
					<td>提交人编码</td>
					<td>
						<s:property value="%{data.code==null||data.code==''?#session.u_code:data.submit_ucode}"/>
					</td>
					<td>提交人名称</td>
					<td>
						<s:property value="%{data.code==null||data.code==''?#session.u_name:data.submit_uname}"/>
					</td>
				</tr>
				<tr>
					<td colspan="8">
					<input type="button" onclick="back()" value="返回" />
					</td>
				</tr>
			</table>
	</div>
</body>
<script type="text/javascript">
var status = "<s:property value='data.id' />";
function back(){
		showProgressBar();
		window.location = webctx+"/reality/data_queryData.action?data.type=<s:property value='data.type'/>&data.data_type=<s:property value='data.data_type'/>&data.date_type=<s:property value='data.date_type'/>";
}
$(function(){
	if(status!=0)selectFiles(status,"TB_DATA",true);
	var selval = "";
	$('select').each(function(){
		selval=$(this).children('option[selected="selected"]').text();
		$(this).parent('td').empty().append(selval);
	});
	
});
</script>
</html>